<template>
    

  <a-spin :spinning="spinning">
    <a-descriptions title="个人信息" v-if="data" :column="2">
        <a-descriptions-item label="姓名">{{ data.name }}</a-descriptions-item>
        <a-descriptions-item label="性别">{{ data.gender == 1 ? '男' : '女' }}</a-descriptions-item>
        <a-descriptions-item label="出生年月">{{ data.birthday }}</a-descriptions-item>
        <a-descriptions-item label="所在城市">{{ data.cityName }}</a-descriptions-item>
        <a-descriptions-item label="证件">{{ data.identityTypeName }} / {{ data.identityCode }}</a-descriptions-item>
        <a-descriptions-item label="工作单位">{{ data.companyName }}</a-descriptions-item>
        <a-descriptions-item label="所属行业">{{ data.industryName }}</a-descriptions-item>
        <a-descriptions-item label="工作职务">{{ data.workPost }}</a-descriptions-item>
    </a-descriptions>
  </a-spin>
</template>

<script lang="ts" setup>
    import { detailApi } from '@/api/AlumniAuthRecord'
    import { ref } from 'vue';


    const props = defineProps<{
        row : any;
    }>()

    const data = ref()

    const spinning = ref(true)


    detailApi(props.row.id).then(r => {
      data.value = r.data

      spinning.value = false
    })

    
    

    
</script>